import time
from zoukao3.Page.Page import Page
from zoukao3.Page.Page1 import Page1
from zoukao3.Page.Page2 import Page2
from selenium import webdriver
import pytest
# 测试用例类

class Test_case():
    @pytest.fixture
    def driver(self):
        driver=webdriver.Edge()
        driver.maximize_window()
        yield driver
        time.sleep(10)
        driver.quit()

    # 数据驱动
    # @pytest.mark.parametrize('case',yaml())

    def test_01(self,driver):
        po=Page(driver)
        po.baidu_luoji_01()

    def test_02(self,driver):
        po=Page1(driver)
        po.baidu_luoji_02()

    def test_03(self,driver):
        po=Page2(driver)
        po.baidu_luoji_03()

if __name__ == '__main__':
    pytest.main()


